
<div class="center_head_nav">
    <div class="main_item_box">
        <a class="logo1" href="/">
            <img src="/statics/images/white_logo.png">
        </a>
        <ul class="center_head_infor">
            <li><a href="/">首页</a></li>
            <li>
                <a class="hide_select">账户管理</a>
                <ul>
                    <li><a href="/user/info" class="this_nav">个人资料</a></li>
                    <li><a href="/user/address">地址管理</a></li>
                    <li><a>账户安全</a></li>
                </ul>
            </li>
            <li>                        
                <a class="hide_select">我的财富</a>
                <ul>
                    <li><a  class="<?php if(!empty($active_nav) && $active_nav==2) echo 'this_nav' ?> " href="/user/balance?amount_type=1">支付记录</a></li>
                    <li><a  class="<?php if(!empty($active_nav) && $active_nav==3) echo 'this_nav' ?> " href="/user/balance?amount_type=2">我的积分</a></li>
                    <li><a  class="<?php if(!empty($active_nav) && $active_nav==4) echo 'this_nav' ?> " href="/user/balance?amount_type=5">我的福豆</a></li>
                </ul>
            </li>
            <li><a  href="/message/list">消息(<span  class="message_count_area"><?php echo $message_count; ?></span>)</a></li>
            <li class=""><a href="/user/share">分享途径</a></li>
            <li class="order_tip" style="display: none"><a href="/shop/order">新订单+<span>0</span></a></li>
        </ul>
    </div>
</div>
<?php if($is_shop_user) :?>
<script type="text/javascript">
    $(function(){
        var time = <?php echo time(); ?>;
        var timer = setInterval(function(){
            $.ajax({
                type:"GET",
                dataType: "json",
                url: "<?php echo $this->getController()->createUrl('/order/getnew')?>",
                data:{time:time},
                success: function(json){
                    if (json!=0) {
                        $('.order_tip span').text(json);
                        $('.order_tip').show(400);
                        showSuccess('有'+json+'条新订单完成支付，请及时发货！',10000);
                        time = parseInt(new Date().getTime()/1000);
                    }
                },
                error:function(e){
                }
            });
        },3000)
         
    });
</script>
<?php endif; ?>
<style>
    .center_head_nav .logo1{
        height: 80px;
        line-height: 80px;
        margin-top: 0;
    }
    .logo1 img{
        vertical-align: middle;
    }
</style>